<?php
/**
 *  SAE中队列任务和在主程序不在同一个会话环境中
 */

class SAETaskQueueADP extends TaskQueueADP {
	
	function SAETaskQueueADP() {
	}
	
	function select($queryName) {
		parent::select($queryName);
		$this->queueSelectedObj = new SaeTaskQueue($queryName);
	}
	
	function addTask($mixed) {
		//$array[] = array('url'=>"http://freedemo.sinaapp.com/yourtask2.php", "postdata"=>"act=test", "prior"=>true);
		$this->queueSelectedObj->addTask($mixed);
	}
	
	function push() {
		return $this->queueSelectedObj->push();
	}
}
?>